package com.isoft.question.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 答题管理对象 question
 * 
 * @author lgm
 * @date 2024-07-26
 */
public class Question extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问答编号 */
    private Long id;

    /** 提问题目 */
    @Excel(name = "提问题目")
    private String title;

    /** 提问内容 */
    @Excel(name = "提问内容")
    private String content;

    /** 答案内容 */
    @Excel(name = "答案内容")
    private String answer;

    /** 回答内容 */
    @Excel(name = "回答内容")
    private String studentanswer;

    /** 问答类型 */
    @Excel(name = "问答类型")
    private String questiontype;

    /** 提问时间 */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @Excel(name = "提问时间", width = 30, dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private Date questiontime;

    /** 截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private Date deadline;

    /** 回答时间 */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @Excel(name = "回答时间", width = 30, dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private Date answertime;

    /** 答题分数 */
    @Excel(name = "答题分数")
    private BigDecimal answerscore;

    /** 课程编号*/
    private Long courseId;

    /** 学生编号*/
    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setStudentanswer(String studentanswer) 
    {
        this.studentanswer = studentanswer;
    }

    public String getStudentanswer() 
    {
        return studentanswer;
    }
    public void setQuestiontype(String questiontype) 
    {
        this.questiontype = questiontype;
    }

    public String getQuestiontype() 
    {
        return questiontype;
    }
    public void setQuestiontime(Date questiontime) 
    {
        this.questiontime = questiontime;
    }

    public Date getQuestiontime() 
    {
        return questiontime;
    }
    public void setDeadline(Date deadline) 
    {
        this.deadline = deadline;
    }

    public Date getDeadline() 
    {
        return deadline;
    }
    public void setAnswertime(Date answertime) 
    {
        this.answertime = answertime;
    }

    public Date getAnswertime() 
    {
        return answertime;
    }
    public void setAnswerscore(BigDecimal answerscore) 
    {
        this.answerscore = answerscore;
    }

    public BigDecimal getAnswerscore() 
    {
        return answerscore;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", answer='" + answer + '\'' +
                ", studentanswer='" + studentanswer + '\'' +
                ", questiontype='" + questiontype + '\'' +
                ", questiontime=" + questiontime +
                ", deadline=" + deadline +
                ", answertime=" + answertime +
                ", answerscore=" + answerscore +
                ", courseId=" + courseId +
                ", userId=" + userId +
                '}';
    }
}
